﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EIIS.Infrastructure.Model.System;
using EIIS.Infrastructure.Service.System;
using EIIS.Infrastructure.Repositories.System;

namespace EIIS.Infrastructure.Service.Implement
{
    public class DictionaryManager : GenericManagerBase<Dictionary>, IDictionaryManager
    {
        public IList<Dictionary> LoadAllByPage(out long total, string strDicCategoryId, int page, int rows, string order, string sort)
        {
            return ((IDictionaryRepository)(this.CurrentRepository)).LoadAllByPage(out total, strDicCategoryId, page, rows, order, sort).ToList();
        }

        public IList<Dictionary> LoadAllByCategoryCode(string strCode)
        {
            return ((IDictionaryRepository)(this.CurrentRepository)).LoadAllByCategoryCode(strCode).ToList();
        }

        public Dictionary GetByTiaoMH(string TiaoMH, int ZT)
        {
            return ((IDictionaryRepository)(this.CurrentRepository)).GetByTiaoMH(TiaoMH, ZT);
        }

    }
}
